home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / C ++ / Frameworks / SCAPI 0.85 / Spunk Cross API 1.0 / MacSCAPI / Headers / SCAPIGroupBox.h < prev    next >
Encoding:
Text File  |  1997-05-30  |  2.2 KB  |  86 lines  |  [TEXT/CWIE]

  1. // ===========================================================================
  2. //    SCAPIGroupBox.h                ©1997 Spunk Cross         All rights reserved.
  3. // ===========================================================================
  4.  
  5. #ifndef SCAPIGROUPBOX_H
  6. #define SCAPIGROUPBOX_H
  7.  
  8. #include "SCAPICommonIncludes.h"
  9. #include "SCAPIWindow.h"
  10. #include <LGroupBox.h>
  11.  
  12.  
  13. // ---------------------------------------------------------------------------
  14. //        • Defines
  15. // ---------------------------------------------------------------------------
  16.  
  17. #define SCAPIGroupBox_default_title         "group box"
  18. #define SCAPIGroupBox_default_originx        0
  19. #define SCAPIGroupBox_default_originy        0
  20. #define SCAPIGroupBox_default_width            200
  21. #define SCAPIGroupBox_default_height        100
  22.  
  23.  
  24. // ---------------------------------------------------------------------------
  25. //        • GroupBox Class
  26. // ---------------------------------------------------------------------------
  27.  
  28. class SCAPIGroupBox : public LGroupBox
  29. {
  30.  
  31.     // ===========================================================
  32.     // === Spunk Cross API, these are the routines you can use ===
  33.     // ===========================================================
  34.     
  35.         // • Constructor - Destructor
  36.         // --------------------------
  37.         
  38.     public:
  39.     
  40.         SCAPIGroupBox(    SCAPIWindow*    inWindowP,
  41.                         char*            inTitle = SCAPIGroupBox_default_title,
  42.                         int                inOriginx = SCAPIGroupBox_default_originx,
  43.                         int             inOriginy = SCAPIGroupBox_default_originy,
  44.                         int                inWidth = SCAPIGroupBox_default_width,
  45.                         int                inHeight = SCAPIGroupBox_default_height        );
  46.         
  47.         ~SCAPIGroupBox();
  48.         
  49.         
  50.         // • Member functions
  51.         // ------------------
  52.         
  53.     public:
  54.         
  55.         void            Enable();
  56.         void            Disable();
  57.         
  58.         
  59.     // =================================
  60.     // === Internal part, do not use ===
  61.     // =================================
  62.         
  63.         // • Member functions
  64.         // ------------------
  65.         
  66.     private:
  67.     
  68.         SPaneInfo        MakeSPaneInfo(    SCAPIWindow*    inWindowP,
  69.                                         int                inOriginx,
  70.                                         int                inOriginy,
  71.                                         int                inWidth,
  72.                                         int                inHeight    );
  73.                                         
  74.         unsigned char*        MakePascalString(    char*    inTitle );
  75.                                         
  76.         
  77.         // • Member variables
  78.         // ------------------
  79.         
  80.     private:
  81.     
  82.         SPaneInfo            mSPaneInfo;
  83.         unsigned char        mStr255[256];
  84. };
  85.  
  86. #endif